package com.j283_5.wisdom_park.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public class DeviceInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备信息id
     */
    @TableId(value = "dinf_id", type = IdType.AUTO)
    private Integer dinfId;

    /**
     * 安装位置
     */
    private String dinfLocation;

    /**
     * 0:为运行状态正常，1：为异常
     */
    private Integer dinfState;

    /**
     * 运行时常
     */
    private Integer dinfRuntime;

    /**
     * 设备最近更新时间
     */
    private LocalDateTime dinfUpdate;

    /**
     * 设备类型id
     */
    private Integer dtypId;


    public Integer getDinfId() {
        return dinfId;
    }

    public void setDinfId(Integer dinfId) {
        this.dinfId = dinfId;
    }

    public String getDinfLocation() {
        return dinfLocation;
    }

    public void setDinfLocation(String dinfLocation) {
        this.dinfLocation = dinfLocation;
    }

    public Integer getDinfState() {
        return dinfState;
    }

    public void setDinfState(Integer dinfState) {
        this.dinfState = dinfState;
    }

    public Integer getDinfRuntime() {
        return dinfRuntime;
    }

    public void setDinfRuntime(Integer dinfRuntime) {
        this.dinfRuntime = dinfRuntime;
    }

    public LocalDateTime getDinfUpdate() {
        return dinfUpdate;
    }

    public void setDinfUpdate(LocalDateTime dinfUpdate) {
        this.dinfUpdate = dinfUpdate;
    }

    public Integer getDtypId() {
        return dtypId;
    }

    public void setDtypId(Integer dtypId) {
        this.dtypId = dtypId;
    }

    @Override
    public String toString() {
        return "DeviceInformation{" +
        "dinfId=" + dinfId +
        ", dinfLocation=" + dinfLocation +
        ", dinfState=" + dinfState +
        ", dinfRuntime=" + dinfRuntime +
        ", dinfUpdate=" + dinfUpdate +
        ", dtypId=" + dtypId +
        "}";
    }
}
